package cn.iocoder.yudao.gateway.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ext.gouying3
 * @date 2025/7/30
 */
@RefreshScope
@RestController
public class IndexController {

    @Value("${name:zhansan1}")
    private String name;

    @GetMapping("/test")
    public String name(){
        return name;
    }
}
